<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

    <c:if test="${not empty param.login_error}">
      <font color="red">
        <spring:message code="login.attemptNotSuccess"/>.<br/><br/>
        <spring:message code="login.attemptNotSuccess.reason"/>: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
      </font>
    </c:if>

    <form name="f" action="<c:url value='j_spring_security_check'/>" method="POST" id="loginForm">
		<p><input id="j_username" name="j_username" class="mandatory" type="text" size="20" maxlength="40" value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'/>&nbsp;username</p>
		<p><input id="j_password" name="j_password" class="mandatory" type="password" size="20" maxlength="40"  value="" />&nbsp;password</p>             		                	
		<p><input type="submit" value="<spring:message code="button.login"/>" class="login-button" /></p>
    </form>

